package com.example.design.shejimoshi.createMode.factoryMode.基于泛型的工厂模式.factory;

import com.example.design.shejimoshi.createMode.factoryMode.基于泛型的工厂模式.Square;

/**
 * @Description 长方形生产工厂
 * @Author liuzhihui
 * @Date 2024/5/22
 */
public class SquareFactory implements ShapeFactory<String, Square> {

    @Override
    public Square getShape(String shapeType) {
        Square square = new Square();
        // 根据入参设置一些东西
        return square;
    }
}
